<template>
	<view>
		<view class="header">
			<u-navbar title="车次选择" back-icon-size='44' :background="background" title-color="#FFFFFF" :border-bottom='false'
			 back-icon-color='#071D42'>
			</u-navbar>
		</view>
		<view class="trainType">
			<view class="trainType-ul">
				<view class="lable">
					<text style="font-size: 36rpx;font-weight: bold;">推荐车次</text>（多选几个车次，成功率更高！）
				</view>
				<view class="trainType-li">
					<view class="trainInfo">
						<view class="start">
							<view class="time" style="color: #3587F7;">
								14:00
							</view>
							<view class="address">
								深圳北
							</view>
						</view>
						<view class="info">
							<view class="shic">
								12时55分
							</view>
							<image src="../../../static/imgs/airTo.png" mode=""></image>
							<view class="chec">
								K502
							</view>
						</view>
						<view class="end">
							<view class="time">
								12:50
							</view>
							<view class="address">
								厦门北
							</view>
						</view>
						<view class="checkbox">
							<u-checkbox v-model="checked"></u-checkbox>
						</view>
					</view>
					<view class="trainNum">
						<view class="">
							硬座 有
						</view>
						<view class="">
							硬卧 6张
						</view>
						<view class="">
							软卧 有
						</view>
						<view class="">
							无座 有
						</view>
					</view>
				</view>
				<view class="lable">
					<text style="font-size: 36rpx;font-weight: bold;">其他车次</text>
				</view>
				<view class="trainType-li">
					<view class="trainInfo">
						<view class="start">
							<view class="time" style="color: #3587F7;">
								14:00
							</view>
							<view class="address">
								深圳北
							</view>
						</view>
						<view class="info">
							<view class="shic">
								12时55分
							</view>
							<image src="../../../static/imgs/airTo.png" mode=""></image>
							<view class="chec">
								K502
							</view>
						</view>
						<view class="end">
							<view class="time">
								12:50
							</view>
							<view class="address">
								厦门北
							</view>
						</view>
						<view class="checkbox">
							<u-checkbox v-model="checked"></u-checkbox>
						</view>
					</view>
					<view class="trainNum">
						<view class="">
							硬座 有
						</view>
						<view class="">
							硬卧 6张
						</view>
						<view class="">
							软卧 有
						</view>
						<view class="">
							无座 有
						</view>
					</view>
				</view>
				<view class="trainType-li">
					<view class="trainInfo">
						<view class="start">
							<view class="time" style="color: #3587F7;">
								14:00
							</view>
							<view class="address">
								深圳北
							</view>
						</view>
						<view class="info">
							<view class="shic">
								12时55分
							</view>
							<image src="../../../static/imgs/airTo.png" mode=""></image>
							<view class="chec">
								K502
							</view>
						</view>
						<view class="end">
							<view class="time">
								12:50
							</view>
							<view class="address">
								厦门北
							</view>
						</view>
						<view class="checkbox">
							<u-checkbox v-model="checked"></u-checkbox>
						</view>
					</view>
					<view class="trainNum">
						<view class="">
							硬座 有
						</view>
						<view class="">
							硬卧 6张
						</view>
						<view class="">
							软卧 有
						</view>
						<view class="">
							无座 有
						</view>
					</view>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked:false,
				background: {
					backgroundColor: 'rgba(255,255,255,0)'
				},
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.header {
		width: 100%;
		height: 230px;
		background: linear-gradient(180deg, #3DA4FE 0%, #3587F7 72%, rgba(45, 123, 247, 0) 100%);
	}

	.trainType {
		margin-top: -340rpx;
		padding: 0 28rpx;

		.trainType-ul {
			width: 100%;
			height: auto;
			background-color: #FFFFFF;
			border-radius: 16rpx;
			padding: 8rpx 20rpx 0;

			.lable {
				height: 88rpx;
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: bold;
				color: #333333;
				line-height: 88rpx;
			}

			.trainType-li {
				border-bottom: 2rpx solid #F2F2F7;
				&:last-child{
					border-bottom:none
				}
				.trainInfo {
					padding: 20rpx;
					display: flex;
					align-items: center;

					.start,
					.end {
						display: flex;
						flex-direction: column;
						align-items: center;

						.time {
							font-size: 36rpx;
							font-family: Alibaba Sans;
							font-weight: bold;
						}

						.address {
							font-size: 24rpx;
							font-family: Segoe UI;
							font-weight: 400;
							color: #333333;
						}
					}

					.info {
						display: flex;
						flex-direction: column;
						align-items: center;
						margin: 0 72rpx;
						font-size: 20rpx;
						font-family: Segoe UI;
						font-weight: 400;
						color: #666666;

						image {
							width: 108rpx;
							height: 6rpx;
						}
					}
					
					.checkbox {
						margin-left: auto;
					}

				}

				.trainNum {
					padding: 0 20rpx 20rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
				}
			
			}
		
		}
	}
</style>
